package cn.wang.web;

import cn.wang.service.CastomerService;
import com.opensymphony.xwork2.ActionSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * Created by john on 2017/10/25.
 */
@Controller
@Scope("prototype")
public class CastomeAction extends ActionSupport {
    @Autowired
    private CastomerService castomerService;

    public String execute() {
        castomerService.add();
        System.out.println("哈哈");
        return SUCCESS;
    }
}
